package com.service.api.google;

import javax.xml.rpc.ServiceException;

import com.google.api.adwords.lib.AdWordsUser;

public class GoogleServices
{
	private AdWordsUser user;
	
	private GetRelatedKeywords getRelatedKeywords;
	private GetTrafficEstimates getTrafficEstimates;
	private GetKeywordStats getKeywordStats;
	
	
	public GoogleServices(String email, String password, String userAgent, String developerToken)
	{
		user = new AdWordsUser(email, password, userAgent, developerToken);
	}
	
	
	public GetTrafficEstimates getTrafficEstimatesService() throws ServiceException
	{
		getTrafficEstimates = new GetTrafficEstimates(user);
		
		getTrafficEstimates.init();
		
		return getTrafficEstimates;
	}
	
	public GetRelatedKeywords getRelatedKeywordsService() throws ServiceException
	{
		getRelatedKeywords 	= new GetRelatedKeywords(user);
		
		getRelatedKeywords.init();
		
		return getRelatedKeywords;
	}
	
	public GetKeywordStats getKeywordStatsService() throws ServiceException
	{
		getKeywordStats = new GetKeywordStats(user);
		
		getKeywordStats.init();
		
		return getKeywordStats;
	}
	
	

	
	
	
	
}
